<template>
	<el-select v-model="value" placeholder="请选择" @change="onChangeHandler()"  filterable size="mini" clearable>
		<el-option v-for="item in selectItems" :key="item.value" :label="item.name" :value="item.value">
		</el-option>
	</el-select>
</template>

<script>
	export default {
		name: "PropertySelectComponent",
		props: [
			"propertyName",
			"propertyValue",
			"selectItems"
		],beforeMount() {
			this.value=this.propertyValue;
		},
		data() {
			return {
				value: "",
			}
		},
		methods: {
			onChangeHandler:function(){
				this.$emit("change",this.propertyName,this.value);
			}
		}
	}
</script>

<style>
</style>
